#include<iostream>
using namespace std;


template <typename T>
T add(T x, T y)
{
    return (x+y);
}


int main()
{
    double a, b, c;
    a = 1.2, b = 2.1;
    c = add(a, b);
    cout << c << endl;
    return 0;
}